package com.example.aop;

import com.example.aop.service.impl.userServiceImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class AopApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(AopApplication.class, args);
        userServiceImpl bean = run.getBean(userServiceImpl.class);
        bean.insertUser();
    }

}
